package com.stadyhelper.pojo;

import jakarta.validation.constraints.Digits;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

import java.time.LocalDate;

@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
@Validated
public class Score {
    private Integer id;
    private LocalDate scoreDate;
    private String examsMessage;
    @Digits(integer = 3, fraction = 1)
    private Integer scoreChinese;
    @Digits(integer = 3, fraction = 1)
    private Integer scoreMath;
    @Digits(integer = 3, fraction = 1)
    private Integer scoreEnglish;
    @Digits(integer = 3, fraction = 1)
    private Integer scorePhysics;
    @Digits(integer = 3, fraction = 1)
    private Integer scoreChemistry;
    @Digits(integer = 3, fraction = 1)
    private Integer scoreBiologic;
    private Integer scoreTotal;
}
